package com.migu.spms.dao.inf;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.migu.spms.dao.entity.SubParentRequireCriteria;
import com.migu.spms.dao.entity.SubParentRequireDO;

@Repository("ISubParentRequireDO")
public interface ISubParentRequireDO {
    int deleteByPrimaryKey(Long id);

    int insert(SubParentRequireCriteria record);

    int insertSelective(SubParentRequireCriteria record);

    SubParentRequireDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SubParentRequireCriteria record);

    int updateByPrimaryKey(SubParentRequireCriteria record);

    /**
     * 根据子需求主键id查询父需求主键id/或根据父需求主键id查询子需求id
     */
    List<SubParentRequireDO> selectByCriteria(SubParentRequireCriteria record);

    void batchInsert(List<SubParentRequireCriteria> record);
    
    /**
    * @Title: deleteByCreteria
    * @Description: 删除
    * @param @param record  
    * @return void
    * @author le
    * @throws
    */ 
    void deleteByCreteria(SubParentRequireCriteria record);
    
    //获取所有关联的需求id
    String getSubParentRequireList(String parentId);
    //批量删除需求关联表中关联需求id
    void batchDeleteRequirementIds(String[] requirementIds);
}